<?php
  mysql_connect("localhost","root","");
            mysql_select_db("susudo");

          

            $select_forum_query="SELECT forum.*, forum.id as forum_id
FROM forum
JOIN users_profile ON forum.user_id = users_profile.user_id
WHERE forum.user_id = $user_id ";
           $user_forum= mysql_query($select_forum_query);


           /*echo "<pre>";
            print_r($user_forum);
            echo "</pre>"; */
            
?>
